Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not re-initializing ee if it's already initialized in the same worker. #399

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

deepgabani8
Copy link
Collaborator

@deepgabani8 deepgabani8 commented Oct 2, 2023

Earlier it was (re)initializing earthengine client upon every ingestion call, which in turn was calling ee highvolume api.

In beam dataflow, we essentially need to initialize earthengine only once in a device, not even a dataflow worker. These changes initializes ee only if necessary. Now it makes 50% less EE calls in filter and ingestion step.

Effect: Increases ingestion speed by roughly 100%.

Copy link
Collaborator

@alxmrs alxmrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepgabani8 deepgabani8 merged commit dcfc11a into main Oct 3, 2023
7 checks passed
@deepgabani8 deepgabani8 deleted the update/ee-initialization branch October 3, 2023 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants